import {
  Input,
  InputNumber,
  InputPassword,
  Textarea,
  Cascader,
  Checkbox,
  Radio,
  Select,
  Switch,
  TreeSelect,
  DatePicker,
  RangePicker,
  TimePicker,
  CheckboxGroup,
} from 'ant-design-vue'

import MoneyInput from '../inputMoney/MoneyInput.vue'
import CascaderC from '../cascader/Cascader.vue'
import UploadField from '../uploadE/UploadField.vue'
import SelectC from '../select/Select.vue'
import SelUserTree from '../selUser/SelUserTree.vue'
import SelRoleUserTree from '../selRoleUser/SelRoleUserTree.vue'
import TreeSelectC from '../treeSelect/Index.vue'
import RegionSel from '../region/RegionSel.vue'

export const componentsMap = {
  input: Input,
  password: InputPassword,
  textarea: Textarea,
  number: InputNumber,
  money: MoneyInput,
  cascader: CascaderC,
  checkbox: Checkbox,
  CheckboxGroup: CheckboxGroup,
  radio: Radio,
  // select: Select,
  select: SelectC,
  selectC: SelectC,
  switch: Switch,
  treeselect: TreeSelectC,
  datepicker: DatePicker,
  rangePicker: RangePicker,
  timepicker: TimePicker,
  selUserTree: SelUserTree,
  selRoleUserTree: SelRoleUserTree,
  selAddress: RegionSel,
  text: 'div',
  file: UploadField,
  slot: 'slot',
}